package com.le.tester.javaThink.fifth.chapter14_StreamingProgramming;

import java.util.Comparator;

/**
 * 描述：排序方式的比较
 */
public class SortedComparator {
    public static void main(String[] args) throws Exception {
        FileToWords.stream("E:\\L.info\\L.Application\\L.Tester\\src\\main\\java\\com\\le\\tester\\java8\\doc\\Cheese.dat")
                .skip(10)
                .limit(10)
                .sorted(Comparator.reverseOrder())
                .map(o -> o + " ")
                .forEach(System.out::print);
    }
}
